#include <bits/stdc++.h>
using namespace std;
int cups[5] = {100, 250, 500, 1000, 2000};
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < 5; i++) {
    if (n <= cups[i]) {
      cout << cups[i];
      break;
    }
  }
  return 0;
}